package bug;

import bug.persistent.Bug;
import bug.persistent.Task;
import bug.persistent.User;

import java.util.List;

/**
 * User: ion
 * Date: Aug 30, 2008 - 10:54:08 AM
 */

public class Main5 extends BaseMain {

    public static void main(String[] args) {
        new Main5().run();
    }

    public void run() {

        beginSession();

        User u = userDao.getById(2);
        Bug bug = new Bug("Gamma One");
        bug.setUser(u);
        issueDao.save(bug);

        Bug bug2 = new Bug("Gamma Three");
        issueDao.save(bug2);

        Task task = new Task("Task Ten");
        issueDao.save(task);

        endSession();
    }
}